﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/MasterPage.master" AutoEventWireup="true" CodeFile="Read.aspx.cs" Inherits="admin_News_Read" %>
<%@ MasterType VirtualPath="~/admin/MasterPage.master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <!-- iCheck -->
    <link rel="stylesheet" href="<%=ResolveUrl("~/plugins/iCheck/flat/blue.css")%>">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="main" runat="Server">
    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>阅读
        <small>阅读新闻</small>
            </h1>
            <ol class="breadcrumb">
                <li><a href="Default.aspx"><i class="fa fa-bullhorn"></i>我的发布</a></li>
                <li>阅读</li>
            </ol>
        </section>

        <!-- Main content -->
        <section class="content">
            <div class="row">
                <div class="col-md-3">
                    <a href="Default.aspx" class="btn btn-primary btn-block margin-bottom">我的发布</a>

                    <div class="box box-solid">
                        <div class="box-header with-border">
                            <h3 class="box-title">信息</h3>

                            <div class="box-tools">
                                <button type="button" class="btn btn-box-tool" data-widget="collapse">
                                    <i class="fa fa-minus"></i>
                                </button>
                            </div>
                        </div>
                        <!-- /.box-header -->
                        <div class="box-body">
                            <strong><i class="fa fa-user margin-r-5"></i>责编</strong>
                            <br/>
                            <p class="text-muted"><%# Master.ProfileArr[1] %></p>
                        </div>
                        <!-- /.box-body -->
                    </div>
                    <!-- /.box -->

                    <div class="box box-solid">
                        <div class="box-header with-border">
                            <h3 class="box-title">列表</h3>

                            <div class="box-tools">
                                <button type="button" class="btn btn-box-tool" data-widget="collapse">
                                    <i class="fa fa-minus"></i>
                                </button>
                            </div>
                        </div>
                        <div class="box-body no-padding">
                            <ul class="nav nav-pills nav-stacked">
                                <li><a href="Default.aspx"><i class="fa fa-inbox"></i>所有发布</a></li>
                                <li><a href="Draft.aspx"><i class="fa fa-file-text-o"></i>草稿箱</a></li>
                                <li><a href=<%# "/admin/News/Edit.aspx?edit="+Request["read"] %>><i class="fa fa-pencil"></i>修改</a></li>
                                <li><a class="cursor" onclick=<%# "openDialog(" + Request["read"] + ")" %>><i class="fa fa-trash-o"></i>删除</a></li>
                            </ul>
                        </div>
                        <!-- /.box-body -->
                    </div>
                    <!-- /. box -->
                    
                </div>
                <!-- /.col -->
                <div class="col-md-9">
                    <div class="box box-primary">
                        <div class="box-header with-border">
                            <h3 class="box-title">阅读新闻</h3>
                        </div>
                        <!-- /.box-header -->
                        <div class="box-body no-padding">
                            <div class="mailbox-read-info">
                                <h3><asp:Label ID="Label1" runat="server"></asp:Label>
                  <span class="mailbox-read-time pull-right">来源于: <asp:Label ID="Label2" runat="server"></asp:Label></span></h3>
                                <h4><asp:Label ID="Label3" runat="server"></asp:Label></h4>
                                <h5>责编：<%# Master.ProfileArr[1] %>
                  <span class="mailbox-read-time pull-right"><asp:Label ID="Label4" runat="server"></asp:Label></span></h5>
                            </div>
                            <!-- /.mailbox-controls -->
                            <div class="mailbox-read-message">
                                <asp:Label ID="Label5" runat="server"></asp:Label>
                            </div>
                            <!-- /.mailbox-read-message -->
                        </div>
                        <!-- /.box-footer -->
                        <div class="box-footer">
                            <div class="pull-right">
                                <asp:HyperLink ID="HyperLink1" runat="server" CssClass="btn btn-primary" NavigateUrl=<%# "~/admin/News/Edit.aspx?edit="+Request["read"] %>>修改</asp:HyperLink>
                            </div>
                            <button type="button" class="btn btn-default" onclick=<%# "openDialog(" + Request["read"] + ")" %>><i class="fa fa-trash-o"></i>删除</button>
                        </div>
                        <!-- /.box-footer -->
                    </div>
                    <!-- /. box -->
                </div>
                <!-- /.col -->
            </div>
            <!-- /.row -->
            <div id="delModal" class="modal fade" role="dialog" aria-labelledby="delTitle" aria-hidden="true">
                <div class="modal-dialog modal-sm">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                            <h4 class="modal-title" id="delTitle">确认删除吗？</h4>
                        </div>
                        <div class="modal-footer">
                            <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                            <button type="button" class="btn btn-primary" onclick="confirm()">确认</button>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        <!-- /.content -->
    </div>
    <!-- /.content-wrapper -->
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="script" runat="Server">
    <!-- iCheck -->
    <script src="<%=ResolveUrl("~/plugins/iCheck/icheck.min.js")%>"></script>
    <script>
        var del_id;
        function openDialog(id) {
            del_id = id;
            $('#delModal').modal('show');
        }
        function confirm() {
            if (del_id != null) {
                location.href = "/admin/News/Default.aspx?del_id=" + del_id + "";
            }
        }
    </script>
</asp:Content>

